package com.th.supcom.pds.impl.manager.impl;

import java.util.List;
import java.util.Map;

import net.carefx.fc.framework.db.manager.GetSequenceHelper;

import org.apache.ibatis.session.RowBounds;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.th.supcom.pds.domain.pojo.InpPhamAtmRec;
import com.th.supcom.pds.impl.dao.InpPhamAtmRecMapper;
import com.th.supcom.pds.impl.manager.InpPhamAtmRecManager;

/**
 * InpPhamAtmRec 管理接口实现.
 * 
 * 摆药机白药记录.
 */
public class InpPhamAtmRecManagerImpl implements InpPhamAtmRecManager
{
    public static final String TAB_PDS_INP_PHAM_ATM_REC = "PDS_INP_PHAM_ATM_REC";

    private InpPhamAtmRecMapper m_pdsInpPhamAtmRecMapper;

    /** 序列生成器. */
    private GetSequenceHelper m_getSequenceHelper;

    /**
     * 默认的构造函数.
     */
    public InpPhamAtmRecManagerImpl ()
    {

    }

    /**
     * 获取InpPhamAtmRecMapper.
     * 
     * @return InpPhamAtmRecMapper.
     */
    public InpPhamAtmRecMapper getInpPhamAtmRecMapper ()
    {
        return m_pdsInpPhamAtmRecMapper;
    }

    /**
     * 注入InpPhamAtmRecMapper.
     * 
     * @param pdsInpPhamAtmRecMapper set pdsInpPhamAtmRecMapper.
     */
    public void setInpPhamAtmRecMapper (InpPhamAtmRecMapper pdsInpPhamAtmRecMapper)
    {
        m_pdsInpPhamAtmRecMapper = pdsInpPhamAtmRecMapper;
    }

    /**
     * 获取序列.
     * 
     * @return GetSequenceHelper
     */
    public GetSequenceHelper getGetSequenceHelper ()
    {
        return m_getSequenceHelper;
    }

    /**
     * 注入序列.
     * 
     * @param getSequenceHelper getSequenceHelper.
     */
    public void setGetSequenceHelper (GetSequenceHelper getSequenceHelper)
    {
        m_getSequenceHelper = getSequenceHelper;
    }

    @Override
    public InpPhamAtmRec getInpPhamAtmRecByID (Long id)
    {
        return m_pdsInpPhamAtmRecMapper.getInpPhamAtmRecByID (id);
    }

    @Override
    public Long getInpPhamAtmRecSeq ()
    {
        return m_getSequenceHelper.getNextSequenceId (TAB_PDS_INP_PHAM_ATM_REC);
    }

    @Override
    public List <InpPhamAtmRec> findInpPhamAtmRecListByExample (InpPhamAtmRec pdsInpPhamAtmRec)
    {
        return m_pdsInpPhamAtmRecMapper.findInpPhamAtmRecListByExample (pdsInpPhamAtmRec);
    }

    @Override
    public int findInpPhamAtmRecCountByExample (InpPhamAtmRec pdsInpPhamAtmRec)
    {
        return m_pdsInpPhamAtmRecMapper.findInpPhamAtmRecCountByExample (pdsInpPhamAtmRec);
    }

    @Override
    public List <InpPhamAtmRec> findInpPhamAtmRecListByMap (Map <String, Object> params)
    {
        return m_pdsInpPhamAtmRecMapper.findInpPhamAtmRecListByMap (params);
    }

    @Override
    public List <InpPhamAtmRec> findInpPhamAtmRecPagingByMap (Map <String, Object> params, Integer offset, Integer limit)
    {
        return m_pdsInpPhamAtmRecMapper.findInpPhamAtmRecPagingByMap (new RowBounds (offset, limit), params);
    }

    @Override
    public Integer findInpPhamAtmRecCountByMap (Map <String, Object> params)
    {
        return m_pdsInpPhamAtmRecMapper.findInpPhamAtmRecCountByMap (params);
    }

    @Override
    public int modifyInpPhamAtmRec (InpPhamAtmRec pdsInpPhamAtmRec)
    {
        return m_pdsInpPhamAtmRecMapper.modifyInpPhamAtmRec (pdsInpPhamAtmRec);
    }

    @Override
    public int modifyInpPhamAtmRecByExample (InpPhamAtmRec pdsInpPhamAtmRec)
    {
        return m_pdsInpPhamAtmRecMapper.modifyInpPhamAtmRecByExample (pdsInpPhamAtmRec);
    }

    @Override
    public int removeInpPhamAtmRecByID (Long id)
    {
        return m_pdsInpPhamAtmRecMapper.removeInpPhamAtmRecByID (id);
    }

    @Override
    public int removeInpPhamAtmRecByMap (Map <String, Object> params)
    {
        return m_pdsInpPhamAtmRecMapper.removeInpPhamAtmRecByMap (params);
    }

    @Override
    public void addInpPhamAtmRec (InpPhamAtmRec pdsInpPhamAtmRec)
    {
        m_pdsInpPhamAtmRecMapper.addInpPhamAtmRec (pdsInpPhamAtmRec);
    }

    /** 日志记录器. */
    public static final Logger s_logger = LoggerFactory.getLogger (InpPhamAtmRecManagerImpl.class);

    /** 公司版权信息. */
    public static final String copyright = "Copyright 2014, TH Supcom Corporation";

    /** 提交路径. */
    public static final String SCC_BRANCH = "$URL$";

    /** 提交日期. */
    public static final String SCC_LAST_MODIFICATION_DATE = "$Date$";

    /** 最终修改人员. */
    public static final String SCC_LAST_MODIFIER_NAME = "$Author$";

    /** 最终版本号. */
    public static final String SCC_REVISION = "$Revision$";
}